package naming;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;

public class RmiNaming {

	/**
	 * @param args
	 * @throws NotBoundException
	 * @throws RemoteException
	 * @throws MalformedURLException
	 */
	public static void main(String[] args) throws MalformedURLException,
			RemoteException, NotBoundException {
		Remote lookup = Naming.lookup("rmi://10.20.142.5:1199/ipayRmiService");
		System.out.println(lookup);
	}

}
